<template>
  <view class="repair">
    <repair-item txt='上门中' status="success"></repair-item>
    <repair-item txt='受理中' status="waiting"></repair-item>
    <repair-item txt='已完成' status="finish"></repair-item>
    <repair-item txt='已取消' status="cancel"></repair-item>
    <life-button icon="../../static/icon/repair.png" @click='goRepair'>在线报修</life-button>
  </view>
</template>

<script>
  import {
    getRepairLisrt
  } from '@/api/repair.js'
  export default {
    data() {
      return {
        RepairLisrt: []
      }
    },
    onLoad() {
      this.getRepairLisrt()
    },
    methods: {
      goRepair() {
        uni.navigateTo({
          url: '/pkg-house/RepairDetail/RepairDetail'
        })
      },
      async getRepairLisrt() {
        const res = await getRepairLisrt()
        console.log(res);
      }
    }
  }
</script>

<style>
  .repair {
    height: 100%;
    background-color: #FAFAFA;
  }
</style>
